<ul class="file-list">
  <?php foreach($files as $file): ?>
    <li class="<?php echo icon_for_list($file['path']) ?>-icon <?php echo ($file['password'] != '')?('lock'):('') ?>"><?php echo anchor('files/get/' . $file['id_file'], $file['name'], 
      array(
        'title' => 'Subido el ' . date('d/m/Y', strtotime($file['created'])) . ' a las ' . date('H:m', strtotime($file['created'])) . '.'
         . (($file['password'] != '')?(' Requiere contrase&ntilde;a para descargar.'):(''))
        
      )) ?></li>
  <?php endforeach; ?>
  <?php if(count($files) == 0): ?>
    <li class="page-icon">No hay archivos</li>
  <?php endif; ?>
</ul>